package net.tuandn.training.lesson.flexjson;

import net.tuandn.training.model.Country;
import flexjson.JSONSerializer;

public class SimpleSerializer {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Country vietnam = DataManager.getVietnamCountry();

		/*
		 * all collections are not serialized by default
		 */
		JSONSerializer serializer = new JSONSerializer();
		System.out.println(serializer.prettyPrint(true).serialize(vietnam));
	}

}
